package com.app.piemoment.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.app.piemoment.R;

public class AddFileItems extends LinearLayout {

	private LayoutInflater mInflater;
	public LinearLayout convertView, addfileitems_pic, addfileitems_video,
			addfileitems_music, addfileitems_file;
	public ImageButton push_pic, push_video, push_doc, push_file;

	private LayoutParams lp = new LinearLayout.LayoutParams(
			LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
	public ViewHolder holder = new ViewHolder();

	public AddFileItems(Context context) {
		super(context);
		// 导入布局

		mInflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		convertView = (LinearLayout) mInflater.inflate(R.layout.helpitem, null);
		addView(convertView, lp);

		holder.img = (ImageView) convertView.findViewById(R.id.arrow);
		holder.title = (TextView) convertView.findViewById(R.id.title);
		holder.info = (TextView) convertView.findViewById(R.id.contexts);
		holder.llLayout = (LinearLayout) convertView
				.findViewById(R.id.helpitemll);

	}

	public AddFileItems(Context context, AttributeSet attrs) {
		super(context, attrs);

		mInflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		convertView = (LinearLayout) mInflater.inflate(R.layout.helpitem, null);
		addView(convertView, lp);
		holder.img = (ImageView) convertView.findViewById(R.id.arrow);
		holder.title = (TextView) convertView.findViewById(R.id.title);
		holder.info = (TextView) convertView.findViewById(R.id.contexts);
		holder.llLayout = (LinearLayout) convertView
				.findViewById(R.id.helpitemll);

	}

	public final class ViewHolder {
		public ImageView img;
		public TextView title;
		public TextView info;
		public LinearLayout llLayout;
		public boolean isShow;
	}
}
